﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using CSF.BusinessCore.Data;

namespace CSF.Sales.Data
{
    /// <summary>
    /// Author: Robin
    /// Create Date: 2011-9-15
    /// 销售订单类
    /// </summary>
    public class SalesOrder : Transaction
    {
        #region Database Table Field Mapping members

        /// <summary>
        /// 网店Id
        /// </summary>
        public int ApplicationId { get; set; }
        public string RegionCode { get; set; }
        public string CurrencyCode { get; set; }
        public decimal ExchangeRate { get; set; }
        public string CustomerPONo { get; set; }

        public DateTime? OrderDate { get; set; }
        public int OrderWeek { get; set; }
        public string DeliveryModeCode { get; set; }
        public int DeliveryWeek { get; set; }
        public DateTime? DeliveryDate { get; set; }

        public int? BillTo { get; set; }
        public string BillToName { get; set; }
        public string BillToAddress { get; set; }
        public string BillToContact { get; set; }
        public string BillToEmail { get; set; }
        public string BillToFax { get; set; }
        public string BillToMobile { get; set; }
        public string BillToPhone { get; set; }
        public string BillToZipCode { get; set; }

        public int? ShipTo { get; set; }
        public string ShipToName { get; set; }
        public string ShipToAddress { get; set; }
        public string ShipToContact { get; set; }
        public string ShipToEmail { get; set; }
        public string ShipToFax { get; set; }
        public string ShipToMobile { get; set; }
        public string ShipToPhone { get; set; }
        public string ShipToZipCode { get; set; }

        public string VatNo { get; set; }
        public int Status { get; set; }

        public decimal Total { get; set; }
        public decimal Balance { get; set; }

        #endregion Database Table Field Mapping members
    }
}
